package zjitc.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import zjitc.po.Book;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/4/12 16:51
 * @description:
 */
public interface BookMapper {

  List<Book> findAllBook();



  //int deleteBookByBname(String bname);

  List<Book> searchBookByName(@Param("value") String name);

  int addBookMessage(Book book);

    Book findByBsid(@Param("bsid") Integer bsid);

  int updateBookMessage(Book book);

  int deleteBookByBsid(int bsid);

  List<Book> findisHotBook();

  List<Book> findisNewBook();


  List<Book> findBookByCategoryName(@Param("category") String categoryname);

    List<Book> findBookFromCambridge(@Param("value") String str);
}
